include mixin
html
    head
        title 网页链接列表
        include ./cssAndjs/head
    body
        a#send
        +modal
        .panel.panel-default
            .panel-heading
                h2.text-center email和网页列表
            .panel-body
                a(href='/email/list', style={'float': 'right'})
                    button.btn.btn-default(style={'margin-bottom': 20}) 全部
                a(href='/email/list/2', style={'float': 'right'})
                    button.btn.btn-default(style={'margin-bottom': 20, 'margin-right': 20}) 发送2
                a(href='/email/list/1', style={'float': 'right'})
                    button.btn.btn-default(style={'margin-bottom': 20, 'margin-right': 20}) 发送1
                a(href='/email/list/0', style={'float': 'right'})
                    button.btn.btn-default(style={'margin-bottom': 20, 'margin-right': 20}) 发送0
                form.form-inline.input-group.col-md-5.col-md-offset-2(role='form', method='POST', action='/email/show')
                    input.form-control(id='url', name='url', type='text')
                    span.input-group-btn
                        button.btn.btn-search.btn-info(type='submit') 查找
                table.table.table-hover.table-bordered
                    tr
                        th.col-md-3 发送时间
                        th.col-md-5 url
                        th.col-md-2 状态（创建:0,发出:1，2，3)
                        th.col-md-2 操作
                    -for(var item in list)
                        tr
                            td
                                +dateSpan(list[item].get('createTime'))
                            td
                                a(href=list[item].url, id=list[item]._id, target="_blank", data-clipboard-text=list[item].url) #{list[item].url.substring(0, 50)}
                            td= list[item].status
                            td
                                button.use.btn.btn-info.btn-sm(data-clipboard-target=list[item]._id, data-url=list[item].url, data-id=list[item]._id style={'margin-right': 20}) 使用
                                button.del.btn.btn-danger.btn-sm(data-id=list[item]._id) 删除
        include ./cssAndjs/body
        +script('/js/url.js')